<template>
  <div class="home-wrapper">
    <div class="home-container">
      <div class="avatar-area">
        <img
          src="https://avatars.githubusercontent.com/u/9919?s=200&v=4"
          alt="avatar"
          class="avatar"
        />
      </div>
      <h1 class="title">欢迎来到简历集生成器</h1>
      <p class="description">
        只需几步，快速生成你的专属极简个人简历页面！<br />
        支持项目展示、技能标签、自定义主题，还可一键导出。
      </p>
      <el-button
        type="primary"
        size="large"
        class="start-btn"
        @click="startEditing"
      >
        开始制作
      </el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomePage",
  methods: {
    startEditing() {
      this.$router.push("/editor");
    },
  },
};
</script>

<style scoped>
.home-wrapper {
  min-height: 100vh;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 40px 24px 32px 24px;
  text-align: center;
}
.avatar-area {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid #eee;
  object-fit: cover;
}
.title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
  letter-spacing: 2px;
}
.description {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.7;
}
.start-btn {
  width: 100%;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 12px 0;
}
@media (max-width: 500px) {
  .home-container {
    max-width: 98vw;
    padding: 24px 4vw 18px 4vw;
  }
  .title {
    font-size: 20px;
  }
  .description {
    font-size: 14px;
  }
  .avatar {
    width: 48px;
    height: 48px;
  }
}
</style>
